package com.aiyige.model.request;

/**
 * xiachao 2018-7-26
 */
public class WithdrawModel {
    double amount;
    long actionTime;
    String account;
    String name;
    String password;

    private WithdrawModel(Builder builder) {
        amount = builder.amount;
        actionTime = builder.actionTime;
        account = builder.account;
        name = builder.name;
        password = builder.password;
    }

    public WithdrawModel() {
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public static final class Builder {
        private double amount;
        private long actionTime;
        private String account;
        private String name;
        private String password;

        private Builder() {
        }

        public Builder amount(double val) {
            amount = val;
            return this;
        }

        public Builder actionTime(long val) {
            actionTime = val;
            return this;
        }

        public Builder account(String val) {
            account = val;
            return this;
        }

        public Builder name(String val) {
            name = val;
            return this;
        }

        public Builder password(String val) {
            password = val;
            return this;
        }

        public WithdrawModel build() {
            return new WithdrawModel(this);
        }
    }
}
